package com.soon.ws.controller;

import com.soon.ws.bean.Test;
import com.soon.ws.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TestController {

    @Autowired
    TestService service;

    @GetMapping("/selectAll")
    public void selectAll() {
        List<Test> testList = service.selectAll();
        System.out.println("testList-->" + testList.size());
    }
}
